<template>
    <div class="page-section">
            <!--表单-->
            <el-table :data="CurrQcReceiveStandardModel.Children"  ref="dataForm"   v-loading="isLoading"  height="300">
                <el-table-column prop="LevelName" label="缺陷名称" :show-overflow-tooltip="true">
                    <template slot-scope="scope">
                        <el-input v-model="scope.row.LevelName" :readonly="true"/>
                    </template>
                </el-table-column>
                <el-table-column  prop="Count" label="缺陷数量" :show-overflow-tooltip="true">
                    <template slot-scope="scope">
                        <el-input v-model="scope.row.Count"  :readonly="true"/>
                    </template>
                </el-table-column>

                <el-table-column  prop="Remark" label="描述" :show-overflow-tooltip="true">
                    <template slot-scope="scope">
                        <el-input v-model="scope.row.Remark" :readonly="true"/>
                    </template>
                </el-table-column>
                
                
            </el-table>

            <div style="text-align:right; margin: 10px;">
                <el-button type="primary" @click="submitForm">关闭</el-button>
            </div>
    </div>
</template>

<script>
export default {

    props:{
            model: {
                require: true,
                type: Object
            },
            CurrQcReceiveStandardModel: {
                require: true,
                type: Object
            },
    },
    //实例生命周期
    created() {
        this.getQcProjectLevelData();
    },
    data(){
        return {
            isLoading:false,
            //常见缺陷
            QcProjectLevelList:[],
 

        }
    },
    methods:{
        //获取常见缺陷
        getQcProjectLevelData() {
            this.isLoading = true;
            this.$http.get('/api/QcProjectLevel/GetAll')
                .then(res => {
                    this.QcProjectLevelList=res.Data;
                    
                    this.isLoading = false;
                })
        },
        submitForm(){
            this.$emit('callback');
        },
    }

}
</script>

<style>

</style>